(function() {
  'use strict';
  angular.module('services.dataQualityMng')
    .factory('dataConllectionMgmtFactory', dataConllectionMgmtFactory);

  function dataConllectionMgmtFactory($http) {
    return {
      query: query,
      operationQuery: operationQuery
    };

    function query(callback) {
      $http.get('/sas/dataManager/dataQuality/dataApplication/dataConllectionMgmt/query').then(callback);
    }

    function operationQuery(params, callback) {
      $http.post('/sas/dataManager/dataQuality/dataApplication/dataConllectionMgmt/update', params).then(callback);
    }
  }
})();
